//
//  SPOrderListTableViewCell.m
//  panzer
//
//  Created by 还带大道 on 2018/10/21.
//  Copyright © 2018年 还带大道. All rights reserved.
//

#import "SPOrderListTableViewCell.h"
#import "SPGoodsModel.h"

@interface SPOrderListTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *imageV;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *guige;
@property (weak, nonatomic) IBOutlet UILabel *price_1;
@property (weak, nonatomic) IBOutlet UILabel *price_2;
@property (weak, nonatomic) IBOutlet UILabel *number;
@end

@implementation SPOrderListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setModel:(SPGoodsModel *)model
{
    _model = model;
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:model.thumb]];
    self.title.text = model.title;
    self.price_1.text = model.price;
    self.price_2.text = model.old_price;
    self.guige.text = [NSString stringWithFormat:@"规格：%@",@""];
    self.number.text = [NSString stringWithFormat:@"X%ld",model.goods_num];
}

@end
